import Vue from 'vue'
import Router from 'vue-router'
import Home from '../components/Home'
import User from "../components/User";
import Goods from "../components/Goods";
import Orders from "../components/Orders";
Vue.use(Router)
export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home,
      children:[
        {path: "/",redirect:"/user"},
        {path: "/user",component: User},
        {path: "/good",component: Goods},
        {path: "/order",component: Orders}
      ]
    }
  ]
})
